﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Sponsors/SponsorMaster.Master" AutoEventWireup="true" CodeBehind="ForgotPassword.aspx.cs" Inherits="Nivdal.Sponsors.ForgotPassword" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="ErrorLabel" CssClass="errorLabel" runat="server" Text=""></asp:Label>
<div>
		<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
			<asp:View ID="View1" runat="server">
				<table cellpadding="4" cellspacing="4">
					<tr>
						<td colspan="2">
                            <asp:Label ID="ForgotPasswordTitleLabel" runat="server" CssClass="bigTitleLabel" Text="<%$ Resources:SponsorsResource, NewSponsor_ForgotPassword %>"></asp:Label></td>
					</tr>
					<tr>
						<td> <asp:Label ID="EmailTitleLabel" runat="server" CssClass="smallTitleLabel" Text="<%$ Resources:SponsorsResource, NewSponsor_Email %>"></asp:Label></td>
						<td><asp:TextBox ID="EmailTextBox" runat="server" Width="200px" MaxLength="100"></asp:TextBox></td>
					</tr>
					<tr>
						<td></td>
						<td><asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="EmailTextBox"
                        Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_EmailIsRequire %>"
                        ValidationGroup="PasswordForgetWizard"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="EmailValidationExpressionValidator" runat="server"
                        ControlToValidate="EmailTextBox" Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_NotLegalEmail %>"
                        ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="PasswordForgetWizard">
                    </asp:RegularExpressionValidator></td>
					</tr>
					<tr>
						<td></td>
						<td></td>
					</tr>
				</table>
			</asp:View>
			<asp:View ID="View2" runat="server">
				<table cellpadding="4" cellspacing="4">
					<tr>
						<td colspan="2"> <asp:Label ID="SecurityQuestionTitleLabel" runat="server" CssClass="bigTitleLabel" Text="<%$ Resources:SponsorsResource, NewSponsor_SecretQuestion %>" /> </td>
					</tr>
					<tr>
						<td><asp:Label ID="SecretQuestionLabel" runat="server" CssClass="smallTitleLabel" /></td>
						<td> <asp:TextBox ID="SecurityAnswerTextBox" runat="server" Width="200px" MaxLength="100"></asp:TextBox></td>
					</tr>
					<tr>
						<td></td>
						<td> <asp:RequiredFieldValidator ID="SecurityAnswerRequiredFieldValidator" runat="server"
                        ControlToValidate="SecurityAnswerTextBox" Display="Dynamic" ErrorMessage="<%$ Resources:SponsorsResource, NewSponsor_SecurityAnswerRequiredField %>"
                        ValidationGroup="PasswordForgetWizard"></asp:RequiredFieldValidator></td>
					</tr>
					<tr>
						<td></td>
						<td></td>
					</tr>
				</table>			
			</asp:View>
			
		</asp:MultiView>
		
		<asp:Button ID="btnBack" runat="server" Text="&lt; Back " OnClick="btnBack_Click" />
		<asp:Button ID="btnNext" runat="server" Text="Next &gt;" OnClick="btnNext_Click"  ValidationGroup="PasswordForgetWizard" />	
		<asp:Button ID="btnSend" runat="server" Text="Send" OnClick="btnSend_Click"  ValidationGroup="PasswordForgetWizard"/>
	</div>
    <br />
    <br/>
    <asp:Button ID="ResetButton" runat="server" Text="<%$ Resources:SponsorsResource, NewSponsor_Reset %>" 
        onclick="ResetButton_Click" />

</asp:Content>

